﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;

namespace DomainModel
{
    public class Co : EntityBase
    {
        public int CoID { get; set; }
        public int LoginID { get; set; }
        public int CoTypeID { get; set; }
        public int JobCredits { get; set; }

        [Required]
        [NoHtml]
        [Display(Name = "Company Name")]
        [StringLength(64, ErrorMessage = "The Company Name field has maximum 64 characters")]
        public string Name { get; set; }
        //public Boolean IsConfidential { get; set; }
        //public Boolean IsRecruiter { get; set; }

        [Required]
        [Url]
        [Display(Name = "Company Url")]
        [StringLength(255, ErrorMessage = "The Company Url field has maximum 255 characters")]
        public string CoUrl { get; set; }

        [Display(Name = "Company Description")]
        [StringLength(1000, ErrorMessage = "The Company Description field has maximum 1000 characters")]
        public string Description { get; set; }

        [NoHtml]
        [Display(Name = "Location")]
        [StringLength(160, ErrorMessage = "The Location field has maximum 160 characters")]
        public string Location { get; set; }
        //public string ContactName { get; set; }
        //public string ContactEmail { get; set; }
        //public string ContactPhone { get; set; }
        public DateTime CreateDate { get; set; }
        public Boolean HasAvatar { get; set; }
        public string AvatarFileExtension { get; set; }
    }
}
